package com.example.offer.no0006;

import java.util.Arrays;

import com.example.offer.no0006.impl.RecurSolutionImpl;

/**
 * 解答测试-数组中重复的数字
 *
 * @author yumuhui
 */
public class SolutionTest {

    static String s = "";

    public static void main(String[] a1rgs) {

        ListNode node = new ListNode(1);
        ListNode node_13 = new ListNode(3);
        ListNode node_132 = new ListNode(2);
        node_13.next = node_132;
        node.next = node_13;

        System.out.println("入参: node: " + ListNode.toStr(node));
        //        Solution solution = new StackSolutionImpl();
        Solution solution = new RecurSolutionImpl();
        int[] arr = solution.reversePrint(node);

        System.out.println((Arrays.toString(arr)));
    }
}
